// let WebIM = require("../utils/WebIM")["default"];
import LoginApi from '@/api/index.js'
export default {

	async Login({commit}, userInfo) {
		console.log( userInfo)
		const {data} = await LoginApi.testlogin({
			...userInfo,
			tenantId: '000000',
			rememberMe: false,
			clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e',
			grantType: 'password'
		})
		commit('setToken', data.access_token)
		
		uni.switchTab({
			url: '/pages/index/index'
		})
	}
}